// 测试环境和正式环境区分
export function separateHandle(to) {
  // console.log(window.location.href);
  //判断链接href是否为测试环境
  // 更改测试环境颜色
  console.log(to.path)
  if (window.location.href.indexOf("jsbos-web-preview") != -1) {
    // this.$nextTick(() => {
    let meunDom = document.querySelector(".sidebar-container");
    let meunUlDom = document.querySelector(".el-menu");
    // logoDom.style.backgroundColor = "#033c11";
    if (meunDom && meunUlDom) {
      meunDom.style.backgroundColor = "#ee5db9";
      meunUlDom.style.backgroundColor = "#ee5db9";
    }
    // });
  } else {
    // console.log('window.location.href', window.location.href)
  }
}
